<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/16
 * Time: 10:51
 */

namespace app\common\validate;


use think\Validate;

class Notice extends Validate
{
    protected $rule = [ // 定义验证规则
        'id|id' => 'require|number',
        'notice_title|标题' => 'require',
        'content|内容' => 'require',
    ];

    protected $message = [ // 定义验证提示

    ];

    protected $scene = [ // 定义验证场景
        'add' => ['notice_title', 'content'],
        'update' => ['id','notice_title', 'content'],
    ];
}